/**
 * @author: zhiqiang
 * @version: 1.0
 * @date: 2022/3/17
 * @description: 具体的构建类负责完成构建的细节
 */
package com.lzq.builder.improved;

public class RComputerBuilder extends ComputerBuilder {

    private Computer computer = new Computer();

    @Override
    void buildCpu() {
        computer.setCpu("i5 5900");
    }

    @Override
    void buildMoBo() {
        computer.setMoBo("华硕b450");
    }

    @Override
    void buildDisk() {
        computer.setDisk("1tssd");
    }

    @Override
    void buildRAM() {
        computer.setRAM("16g");
    }

    @Override
    void buildPower() {
        computer.setPower("500w");
    }

    @Override
    Computer getComputer() {
        System.out.println(computer);
        return computer;
    }
}
